﻿namespace ApiTemplate.Entity.Base
{
    /// <summary>
    /// 字符串类型主键
    /// </summary>
    public class BaseGuidEntity
    {

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="id"></param>
        public BaseGuidEntity(string id)
        {
            Id = id;
        }

        /// <summary>
        /// 初始化构造
        /// </summary>
        public BaseGuidEntity()
        {
                
        }

        /// <summary>
        /// 主键id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public string Id { get; set; }

    }
}
